package com.lht.designPattern.factory_method.simple;

/**
 * @author Eric
 * @version 1.0
 * @date 2019-10-05
 */
public class Demo {

    public static void main(String[] args) {
        PersonFactory factory = new PersonFactory();
        factory.createStudent().say();
        factory.createTeacher().say();
    }

}
